home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MISC / SHELL.ARC / Shell / h / BarGraph < prev    next >
Encoding:
Text File  |  1994-04-18  |  1.3 KB  |  67 lines

  1. #ifndef __Shell_BarGraph_h
  2. #define __Shell_BarGraph_h
  3.  
  4. #ifndef __Shell_h
  5. #include "Shell.Shell.h"
  6. #endif
  7.  
  8.  
  9. Shell_rectblock *Shell_AddBarGraph(
  10.     Shell_windblock    *wind,
  11.     int    x,
  12.     int    y,
  13.     int    numbars,
  14.     int    spacing,
  15.     int    barwidth,
  16.     int    maxheight,
  17.     int    *data,
  18.     int    forecol,
  19.     int    backcol
  20.     );
  21.     /* Adds a bargraph to a window. The integer array 'data' should    */
  22.     /* have the heights of the bars, in OS units. The heights     */
  23.     /* should all be less than 'maxheight'                */
  24.  
  25. Shell_rectblock *Shell_AddDoubleBarGraph(
  26.     Shell_windblock    *wind,
  27.     int    x,
  28.     int    y,
  29.     int    numbars,
  30.     int    spacing,
  31.     int    barwidth,
  32.     int    maxheight,
  33.     double    *data,
  34.     double    scale,
  35.     double    zero,
  36.     int    forecol,
  37.     int    backcol
  38.     );
  39.     /* As above but uses double values instead of ints.        */
  40.  
  41. Shell_rectblock *Shell_AddDoubleBarGraph2(
  42.     Shell_windblock *wind,
  43.     int    x,
  44.     int    y,
  45.     int    numbars,
  46.     int    spacing,
  47.     int    barwidth,
  48.     int    maxheight,
  49.     double    *data,
  50.     double    min,
  51.     double    max,
  52.     BOOL    autoscale,
  53.     int    forecol,
  54.     int    backcol
  55.     );
  56.  
  57.     /* Adds a bargraph, where bars go up/down from the y=0 line.    */
  58.     /* Set auto TRUE if you want the bargraph to be automatically     */
  59.     /* rescaled when bars get too big - this is a bit of a hack as    */
  60.     /* only re-displayed bars are checked.                */
  61.     /* 'min' and 'max' should hold the max and min values of the     */
  62.     /* data.                            */
  63.  
  64.  
  65.  
  66. #endif
  67.